from multiprocessing import shared_memory
import array


if __name__ == '__main__':
    shm_a = shared_memory.SharedMemory(create=True, size=40)
    print(shm_a.name)
    while 1:

        buffer = shm_a.buf

        buffer[:4] = bytearray([22, 33, 44, 55])  # Modify multiple at once







